ld (requires project clean for valid testing)ꞌ)   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 11
rs 9.4285
1
/* eslint func-names: 0 */
2
3
'use strict';
4
5
var chai = require('chai');
6
var expect = chai.expect;
7
var path = require('path');
8
var shell = require('shelljs');
9
10
chai.use(require('chai-fs-latest'));
11
12
describe('General', function () {
13
  var projectRoot = path.resolve(__dirname, '..', '..');
14
15
  before(function () {
16
    shell.cd(projectRoot);
17
  });
18
19
  describe('build (requires project clean for valid testing)', function () {
20
    this.timeout(30000);
21
22
    it('should create a build directory at the project root', function () {
23
      shell.exec('npm run build --silent', {
24
        silent: true
25
      });
26
27
      expect(path.join(projectRoot, 'build')).to.be.a.directory();
28
    });
29
  });
30
});
31